package day03;

public class IfDemo {
    public static void main(String[] args) {
        //满500打7折
        /*double price=600;

        if (price>=500){
            price*=0.7;
            System.out.println("最后金额为:"+price);
        }
        System.out.println("price="+price);
        double score=95.5;
        if (score>=0 && score<=100){
            System.out.println(score+"合法成绩");
        }
        System.out.println("继续执行");*/
        double price=800;
        if (price>=700){
            price*=0.5;
            System.out.println("最后金额为:"+price);
        }
        System.out.println("price="+price);
        double score=66;
        if (score>0 && score<100){
            System.out.println(score+"为合法成绩");
        }
        System.out.println("继续执行");
    }
}
